home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / pdcurs21.zip / NONPORT.ZIP / RAWOUT.C < prev    next >
Text File  |  1992-11-21  |  1KB  |  40 lines

  1. #define CURSES_LIBRARY 1
  2. #include <curses.h>
  3. #undef  raw_output
  4.  
  5. #ifndef NDEBUG
  6. char *rcsid_rawout = "$Header: c:/curses/nonport/RCS/rawout.c%v 2.0 1992/11/15 03:18:27 MH Rel $";
  7. #endif
  8.  
  9.  
  10.  
  11.  
  12. /*man-start*********************************************************************
  13.  
  14.   raw_output() - enable raw output mode
  15.  
  16.   PDCurses Description:
  17.        This routine enables the output of raw characters using the
  18.        'standard' *add* and *ins* curses functions.
  19.        To force 8 bit output and no translation of control characters,
  20.        invoke raw_output() with bf as TRUE.  To force 7 bit output and
  21.        translation of control characters, invoke raw_output() with bf
  22.        as FALSE.
  23.  
  24.   PDCurses Return Value:
  25.        This function returns OK.
  26.  
  27.   PDCurses Errors:
  28.        No errors are defined for this function.
  29.  
  30.   Portability:
  31.        PDCurses        int raw_output( bool );
  32.  
  33. **man-end**********************************************************************/
  34.  
  35. int    raw_output(bool bf)
  36. {
  37.        _cursvar.raw_out = bf;
  38.        return( OK );
  39. }
  40.